DiagramElementParam
El parámetro elemento de diagrama.
Hereda de: NotifiableObject
Implementa: IDiagramElementParam, IPersistable, INotifyPropertyChanging, INotifyPropertyChanged, IAttributesEntity
Propiedades
public IList<Attribute> Attributes { get; }
value = diagramElementParam.Attributes
Atributos.
public bool CanChangeValue { get; set; }
value = diagramElementParam.CanChangeValue
diagramElementParam.CanChangeValue = value
Puede cambiar el valor.
public bool CanOptimize { get; set; }
value = diagramElementParam.CanOptimize
diagramElementParam.CanOptimize = value
El control puede optimizar el parámetro.
public bool IgnoreOnSave { get; set; }
value = diagramElementParam.IgnoreOnSave
diagramElementParam.IgnoreOnSave = value
Ignorar cuando se salva.
public bool IsDefault { get; }
value = diagramElementParam.IsDefault
El valor predeterminado se especifica.
public Func<SettingsStorage, T> LoadHandler { get; set; }
value = diagramElementParam.LoadHandler
diagramElementParam.LoadHandler = value
El medidor de valor de carga del parámetro.
public string Name { get; set; }
value = diagramElementParam.Name
diagramElementParam.Name = value
Nombre.
public bool NotifyOnChanged { get; set; }
value = diagramElementParam.NotifyOnChanged
diagramElementParam.NotifyOnChanged = value
Elevar el evento cuando la propiedad se cambia.
public Func<T, SettingsStorage> SaveHandler { get; set; }
value = diagramElementParam.SaveHandler
diagramElementParam.SaveHandler = value
El mango de ahorro de valor del parámetro.
public virtual T Value { get; set; }
value = diagramElementParam.Value
diagramElementParam.Value = value
El valor del parámetro.
public Func<T, T, bool> ValueValidating { get; set; }
value = diagramElementParam.ValueValidating
diagramElementParam.ValueValidating = value
Validar el valor del parámetro.
Métodos
public void Load(SettingsStorage storage)
diagramElementParam.Load(storage)
Ajustes de carga.
- storage
- Configuración de almacenamiento.
public void Save(SettingsStorage storage)
diagramElementParam.Save(storage)
Guardar configuración.
- storage
- Configuración de almacenamiento.
public DiagramElementParam<T> SetBasic(bool isBasic)
result = diagramElementParam.SetBasic(isBasic)
Para establecer el atributo BasicSettingAttribute@ para el parámetro elemento de diagrama.
- isBasic
- Es parámetro básico.
Devuelve: El parámetro elemento de diagrama.
public DiagramElementParam<T> SetCanOptimize(bool value)
result = diagramElementParam.SetCanOptimize(value)
Para modificar CanOptimize@.
- value
- Valor.
Devuelve: El parámetro elemento de diagrama.
public DiagramElementParam<T> SetDisplay(string groupName, string displayName, string description, int order)
result = diagramElementParam.SetDisplay(groupName, displayName, description, order)
Para establecer el atributo DisplayAttribute@ para el parámetro elemento de diagrama.
- groupName
- La categoría del parámetro elemento de diagrama.
- displayName
- El nombre de la pantalla.
- description
- La descripción del parámetro elemento del diagrama.
- order
- La orden de la propiedad.
Devuelve: El parámetro elemento de diagrama.
public DiagramElementParam<T> SetEditor<TEditor>(TEditor editor)
result = diagramElementParam.SetEditor(editor)
Para añadir el atributo Atributo para el parámetro elemento de diagrama.
- editor
- Atributo.
Devuelve: El parámetro elemento de diagrama.
public DiagramElementParam<T> SetExpandable(bool expandable)
result = diagramElementParam.SetExpandable(expandable)
Para establecer el atributo ExpandableObjectConverter@ para el parámetro elemento de diagrama.
- expandable
- Valor.
Devuelve: El parámetro elemento de diagrama.
public DiagramElementParam<T> SetNonBrowsable(bool nonBrowsable)
result = diagramElementParam.SetNonBrowsable(nonBrowsable)
Para establecer el atributo BrowsableAttribute@ para el parámetro elemento de diagrama.
- nonBrowsable
- Parámetro oculto.
Devuelve: El parámetro elemento de diagrama.
public DiagramElementParam<T> SetReadOnly(bool readOnly)
result = diagramElementParam.SetReadOnly(readOnly)
Para establecer el atributo ReadOnlyAttribute@ para el parámetro elemento de diagrama.
- readOnly
- Solo lectura.
Devuelve: El parámetro elemento de diagrama.
public void SetValueWithIgnoreOnSave(object value)
diagramElementParam.SetValueWithIgnoreOnSave(value)
Establecer valor e ignorarlo en la configuración de ahorro.
- value
- Valor.
public override string ToString()
result = diagramElementParam.ToString()
Convertirse en una representación de línea.
Devuelve: Rendimiento de cuerda.
Eventos
public event Action<T> ValueChanged
diagramElementParam.ValueChanged += handler
El evento de cambio de valor del parámetro.
public event Action<T, T> ValueChanging
diagramElementParam.ValueChanging += handler
El evento de inicio del cambio de valor del parámetro.